import axios from '@/libs/api.request'

export default class anxinApi {
  // 获取客服
  static postServers = params => {
    return axios.request({
      url: '/Enum/Servers',
      method: 'post',
      data: params,
      enctype: 'multipart/form-data'
    })
  }

  /**
   * 数据字典接口
   */
  static getEnum = params => {
    return axios.request({
      url: '/Enum/Enum',
      method: 'get',
      params: params,
      enctype: 'multipart/form-data'
    })
  }
  /**
   * 数据字典-用工形式
   */
  static getSelectValueList = params => {
    return axios.request({
      url: '/SysBasedata/GetSelectValueList',
      method: 'get',
      params: params,
      enctype: 'multipart/form-data'
    })
  }


  // 获取所有上级公司
  static GetParentCompanys = params => {
    return axios.request({
      url: '/RiskWarn/GetParentCompanys',
      method: 'get',
      params: params
    })
  }

  // 获取所有上级公司下的子公司
  static GetAllChildCompanys = params => {
    return axios.request({
      url: '/Finance/GetAllChildCompanys',
      method: 'get',
      params: params
    })
  }

  // 员工合同监控
  static EmployeeContractList = params => {
    return axios.request({
      url: '/RiskWarn/EmployeeContractList',
      method: 'post',
      data: params,
      enctype: 'multipart/form-data'
    })
  }

  // 导出员工合同监控
  static EmployeeContractExport = params => {
    return axios.request({
      url: '/RiskWarn/EmployeeContractExport',
      method: 'post',
      data: params,
      enctype: 'multipart/form-data'
    })
  }

  // 客户合同监控
  static CustomerContractList = params => {
    return axios.request({
      url: '/RiskWarn/CustomerContractList',
      method: 'post',
      data: params,
      enctype: 'multipart/form-data'
    })
  }

  // 导出客户合同监控
  static CustomerContractExport = params => {
    return axios.request({
      url: '/RiskWarn/CustomerContractExport',
      method: 'post',
      data: params,
      enctype: 'multipart/form-data'
    })
  }
}
